from fastapi import APIRouter

user_router = APIRouter()


@user_router.get("/get")
def get_user():
    return {
        "code": 200,
        "message": "请求成功"
    }


@user_router.get("/get_user_by_id/{user_id}")
def get_user_by_id(user_id: int):
    return {
        "code": 200,
        "message": "请求成功",
        "data": {
            "id": user_id
        }
    }
